import request from '@/utils/request'

export function apiGetList(params, loading) {
  return request({
    url: `/org/deptController/listHasChildren`,
    method: 'get',
    params,
    loading,
    autoUntie: false,
  })
}

export function apiAdd(data) {
  return request({
    url: '/org/deptController/add',
    method: 'post',
    data: data,
  })
}
export function apiEdit(data) {
  return request({
    url: '/org/deptController/edit',
    method: 'put',
    data: data,
  })
}

export function apiDel(ids) {
  return request({
    url: '/org/deptController/' + ids,
    method: 'delete',
  })
}

export function apiRefer(params) {
  return request({
    url: '/org/deptController/referGrid',
    method: 'get',
    params,
    autoUntie: false,
  })
}



